// 集成测试
// import 'package:flutter_driver/flutter_driver.dart';
import 'package:flutter_test/flutter_test.dart';
//import 'package:test/test.dart';

// 新建 test_driver文件夹
// 使用命令启动 flutter drive --target=test_driver/app.dart
void main() {
  group('counter app test', () {
    // 连接目标应用程序
    /* FlutterDriver driver;
    setUpAll(() async {
      driver = await FlutterDriver.connect();
    });*/

    // 关闭Driver
    /*tearDownAll(() {
      driver.close();
    });*/

    // 使用小部件绑定的key定位到指定小部件
   /* final testFinder = find.byValueKey('textKey');
    final buttonFinder = find.byValueKey('buttonKey');

    test('test default value', () async {
      expect(await driver.getText(testFinder), "0");
    });

    test('test FloatActionButton click', () async {
      // 模拟点击
      await driver.tap(buttonFinder);
      expect(await driver.getText(testFinder), "1");
    });*/
  });
}
